<%-- 
    Document   : actionUpdate
    Created on : Nov 4, 2009, 5:37:20 PM
    Author     : khanhlv_b00554
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="java.sql.*,DAO.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
            String txtSubSubject = request.getParameter("txtSubSubject");
            int id = Integer.parseInt(request.getParameter("id"));
            Test check = new Test();
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            check.setTestName(request.getParameter("txtContentTest"));
            check.setTestTime(request.getParameter("txtTime"));
            check.setStatus(request.getParameter("txtStatus"));
            if(check.updateTest(id) == true) {
                response.sendRedirect("viewTest.jsp?txtSubSubject="+txtSubSubject);
            } else {

            }
        %>
    </body>
</html>
